package com.ceshiren.test.houduankaifa.exception;


import lombok.Data;

@Data
public class ServiceException extends RuntimeException {


    /**
     * 业务错误码
     */
    private Integer code;
    /**
     * 错误提示
     */
    private String message;

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(String message, Integer code) {
        this.code = code;
        this.message = message;
    }

}
